package org.altervista.cp.microkernel.install;

import javax.sql.DataSource;

import org.picocontainer.Startable;

public abstract class Installer implements Startable {

	public abstract String getName();

	public abstract byte getMajorVersion();

	public abstract byte getMinorVersion();

	public abstract void install(DataSource ds);

	public abstract void uninstall(DataSource ds);

	public Installer(InstallManager im) {
		_im = im;
	}

	public void start() {
		_im.checkInstaller(this);
	}

	public void stop() {
	}

	private InstallManager _im;

}
